package edu.nuc.event.dao;


import edu.nuc.event.pojo.Competition;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ComMapper {

    //查询出所有的赛事信息
    public List<Competition> findAllComs();

    //查询赛事的数量
    public int allComsaccount();

    //根据ID查询赛事
    public Competition selectComByid(int scid);

    //删除赛事，根据赛事ID
    public int delcomp(int comid);

    //新增赛事
    public int addcomp(Competition competition);

    //修改赛事信息
    public int updatecomp(Competition competition);
}
